from collections.abc import  Iterable,Iterator


if __name__ == '__main__':
    a=[1,2]
    i=iter(a)
    print(isinstance(a,Iterable))
    print(isinstance(a,Iterator))
    print(isinstance(i,Iterator))